#ifndef _data_process_h_
#define _data_process_h_
#include "stm32f4xx_rcc.h"

extern float bat_vol;
extern uint16_t A_point_min_dis;
extern uint16_t A_point_min_angle;

extern uint16_t B_point_min_dis;
extern uint16_t B_point_min_angle;

extern uint16_t C_point_min_dis;
extern uint16_t C_point_min_angle;

extern uint16_t D_point_min_dis;
extern uint16_t D_point_min_angle;

typedef struct
{
	int A0A3Box;
	int A0A1Box;
	int A2A1Box;
	int A2A3Box;
}TagNoneBox_t;

extern TagNoneBox_t TagNoneBox;

void laser_data_analysis(void);
void find_min_xs_dis(void);
void find_mid_distance(void);
void ElectronicFence_Judgement(void);

#endif
